$.extend($.fn.validatebox.defaults.rules, {
	loginId: {
    	validator: function (value) {
    		var rules = $.fn.validatebox.defaults.rules;
    		if(/[\u4e00-\u9fa5]/.test(value)){
    			rules.loginId.message = "不能输入中文字符"; 
    			return false;
    		}else if(/ +/.test(value)){
    			rules.loginId.message = "不能包含空格"; 
    			return false;
    		}else if(value.length<1||value.length>25){
    			rules.loginId.message = "输入的字符长度必须是1~25字节"; 
    			return false;
    		}else{
    			return true;
    		}
    	},
    	message: ""
    },
    loginPwd: {
    	validator: function (value) {
    		var rules = $.fn.validatebox.defaults.rules;
    		if(/[\u4e00-\u9fa5]/.test(value)){
    			rules.loginPwd.message = "不能输入中文字符"; 
    			return false;
    		}else if(/ +/.test(value)){
    			rules.loginPwd.message = "不能包含空格"; 
    			return false;
    		}else if(value.length<0||value.length>32){
    			rules.loginPwd.message = "输入的字符长度必须是1~32字节"; 
    			return false;
    		}else{
    			return true;
    		}
    	},
    	message: ""
    }
});